package client.domain;

import com.google.gwt.maps.client.geom.LatLng;
import com.google.gwt.user.client.Window;

/**
 * User: nbarrios
 * Date: Nov 5, 2009
 */
public class SandboxMainKeys {

//	Global Constants
	public static final String MAIN_DIV = "mainDiv";

	public static final int PAGE_WIDTH = Window.getClientWidth();
	public static final int EAST_PANEL_WIDTH = 100;
	public static final int WEST_PANEL_WIDTH = 200;
	public static int CENTER_PANEL_WIDTH = 980;//PAGE_WIDTH-EAST_PANEL_WIDTH-WEST_PANEL_WIDTH;

	public static final int PAGE_HEIGH = 768;
	public static final int NORTH_PANEL_HEIGHT = 100;
	public static final int SOUTH_PANEL_HEIGHT = 100;
	public static final int CENTER_PANEL_TABS_HEIGH = 500;

	public static final int SELECT_TABS_TO_ADD_WIDTH = 170;
	public static final int SELECT_TABS_TO_ADD_HEIGHT = 100;

	public static final int DEFAULT_TITLE_HEIGHT = 28;//CHECK!!!
	public static final int DEFAULT_TOOLBAR_HEIGHT = 28;//CHECK!!!
	public static final int DEFAULT_PADDINGS = 5;
	public static final int DEFAULT_VERTICAL_SPACE_BETWEEN_WIDGETS = 10;

	public static final int DEFAULT_CLICKS_TO_EDIT_GRID = 1;




//	--------------------------------------------------------------------------------------------------------------------
//	--------------------------------------------------------------------------------------------------------------------
//	Maps Constants
	public static final int DEFAULT_ZOOM_LEVEL = 2;

	public static final double KAITZEN_LAT = -34.632024982750416;
	public static final double KAITZEN_LNG = -58.465890884399414;
	public static final LatLng KAITZEN_POSITION = LatLng.newInstance(KAITZEN_LAT, KAITZEN_LNG);



//	--------------------------------------------------------------------------------------------------------------------
//	--------------------------------------------------------------------------------------------------------------------
//	Chart Constants
	public static final String URL_GOOGLE_CHART_SERVER = "http://chart.apis.google.com/chart?";

	public static final int CHART_WIZARD_WIDTH = 350;
	public static final int CHART_WIZARD_HEIGHT = 350;

	public static final String BACK_BUTTON_ID = "move-previous";
	public static final String NEXT_BUTTON_ID = "move-next";

	public static final String CHART_TYPE_ID = "chartTypeID";
	public static final String CHART_NAME = "chartName";


	//	Values for the parameters above
	public static final int CHART_LEYEND_POSITION_TOP = 't';
	public static final int CHART_LEYEND_POSITION_DOWN = 'd';
	public static final int CHART_LEYEND_POSITION_RIGHT = 'r';
	public static final int CHART_LEYEND_POSITION_LEFT = 'l';

	//	Size of charts
	public static final int MAXIMUM_WIDTH_OR_HEIGHT_FOR_SIMPLE_CHARTS = 1000;
	public static final String MAXIMUM_WIDTH_OR_HEIGHT_FOR_SIMPLE_CHARTS_PX = String.valueOf(MAXIMUM_WIDTH_OR_HEIGHT_FOR_SIMPLE_CHARTS)+"px";
	public static final int MAXIMUM_AREA_FOR_SIMPLE_CHARTS = 300000;
	public static final String MAXIMUM_AREA_FOR_SIMPLE_CHARTS_PX = String.valueOf(MAXIMUM_AREA_FOR_SIMPLE_CHARTS)+"px";

	public static final int MAXIMUM_WIDTH_FOR_MAPS = 440;
	public static final int MAXIMUM_HEIGHT_FOR_MAPS = 220;
	public static final String MAXIMUM_AREA_FOR_MAPS = String.valueOf(MAXIMUM_WIDTH_FOR_MAPS*MAXIMUM_HEIGHT_FOR_MAPS);
	public static final String MAXIMUM_PIXELS_FOR_MAPS = String.valueOf(MAXIMUM_WIDTH_FOR_MAPS)+"x"+String.valueOf(MAXIMUM_HEIGHT_FOR_MAPS)+" px";

	/**
	 * Default number of rows to show at start up
	 */
	public static final int INITIAL_PROPERTIES_ROW_NUMBER = 1;

	public static final String DATA_INDEX_LABEL = "label";
	public static final String DATA_INDEX_VALUE = "value";
	public static final String DATA_INDEX_COLOUR = "colour";

	public static final int COLUMN_ORDER_LABEL = 1;
	public static final int COLUMN_ORDER_VALUE = 2;
	public static final int COLUMN_ORDER_COLOUR = 3;


	//	-------------- Chart Wizard Constants --------------
	public static final int CHART_WIZARD_TOTAL_CARDS = 4;

//	Cards ID for Create Chart Wizard
	public static final String CHART_WIZARD_CARD_1 = "card-1";
	public static final String CHART_WIZARD_CARD_2 = "card-2";
	public static final String CHART_WIZARD_CARD_3 = "card-3";
	public static final String CHART_WIZARD_CARD_4 = "card-4";
//	Cards index
	public static final int CHART_WIZARD_CARD_1_INDEX = 1;
	public static final int CHART_WIZARD_CARD_2_INDEX = 2;
	public static final int CHART_WIZARD_CARD_3_INDEX = 3;
	public static final int CHART_WIZARD_CARD_4_INDEX = 4;


//	--------------------------------------------------------------------------------------------------------------------
//	--------------------------------------------------------------------------------------------------------------------
// 	Something Else
	public static final String PAGE_WIDTH_ST = String.valueOf(PAGE_WIDTH);
	public static final String PAGE_HEIGH_ST = String.valueOf(PAGE_HEIGH);

	public static final String NORTH_PANEL_HEIGHT_ST = String.valueOf(NORTH_PANEL_HEIGHT);
	public static final String NORTH_PANEL_HEIGHT_ST_PX = NORTH_PANEL_HEIGHT_ST+"px";

	public static final String SOUTH_PANEL_HEIGHT_ST = String.valueOf(SOUTH_PANEL_HEIGHT);

	public static final String WEST_PANEL_WIDTH_ST = String.valueOf(WEST_PANEL_WIDTH);

	public static final String EAST_PANEL_WIDTH_ST = String.valueOf(EAST_PANEL_WIDTH);

	public static final String CENTER_PANEL_WIDTH_ST = String.valueOf(CENTER_PANEL_WIDTH);
	public static final String CENTER_PANEL_TABS_HEIGH_ST = String.valueOf(CENTER_PANEL_TABS_HEIGH);

	public static final String SELECT_TABS_TO_ADD_WIDTH_ST = String.valueOf(SELECT_TABS_TO_ADD_WIDTH);
	public static final String SELECT_TABS_TO_ADD_WIDTH_ST_PX = SELECT_TABS_TO_ADD_WIDTH_ST+"px";



//	--------------------------------------------------------------------------------------------------------------------
//	--------------------------------------------------------------------------------------------------------------------
//	Images path
	public static final String IMG_KAITZEN_LOGO = "img/logo.jpg";
	public static final String IMG_MAP_PREVIEW = "img/mapPreview.jpg";
	public static final String IMG_CHART_PREVIEW = "img/chartPreview.jpg";



}//  End Class
